package com.ahuan.controller;

import org.slf4j.MDC;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class TestSwaggerController {
    @RequestMapping(value = "/hello", method = RequestMethod.GET)
    public String holle() {

        System.out.println(MDC.get("test"));

        return "hello swagger";
    }

//    @RequestMapping(value = "/user", method = RequestMethod.GET)
//    public TestTable test() {
//        return new TestTable();
//    }
//    //给文档标注这是一个Controller的方法
//    @ApiOperation("api 控制方法")
//    @RequestMapping(value = "/api", method = RequestMethod.GET)
//    public TestTable api(@ApiParam("测试参数") String testPram) {
//        return new TestTable();
//    }
}
